
<html><HEAD>
<LINK REL=STYLESHEET HREF="default.css" TYPE="text/css">
<TITLE>
Opening Script views</TITLE>
</HEAD>
<BODY>

<!-- Header -->
<p class="ancestor" align="right"><A HREF="pbugp66.htm">Previous</A>&nbsp;&nbsp;<A HREF="pbugp68.htm" >Next</A>
<!-- End Header -->
<A NAME="BABBEHGB"></A><h1>Opening Script views</h1>
<A NAME="TI1910"></A><p>If there is no open Script view, selecting a menu or PainterBar
item that requires a Script view opens one automatically. If you
want to edit more than one script at a time, you can open additional
Script views from the View menu. </p>
<A NAME="TI1911"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To open a new Script view:</p>
<ol><li class=fi><p>Select View&gt;Script from the menu
bar.</p></li></ol>
<br><A NAME="TI1912"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To edit a script for a control:</p>
<ol><li class=fi><p>Double-click a scriptable control, or select
Script from the PainterBar or a pop-up menu.</p><p>The Script view shows the default script for the control.
If the Script view is in a stacked pane and is hidden, it pops to
the front. If there is no open Script view, PowerBuilder creates
a new one. </p><p><img src="images/note.gif" width=17 height=17 border=0 align="bottom" alt="Note"> <span class=shaded>Using drag and drop</span> <A NAME="TI1913"></A>If a Script view is visible, you can drag a control from the
Control list view to the Script view to edit a script for the control.</p>
</li></ol>
<br><A NAME="TI1914"></A><p><img src="images/proc.gif" width=17 height=17 border=0 align="bottom" alt="Steps"> To edit a script for a function or event:</p>
<ol><li class=fi><p>Double-click an item in the Event list
or Function list views, or select the function or event from the
second drop-down list in an open Script view.</p><p>The Script view shows the script for the selected event or
function. If the Script view is in a tabbed pane and is hidden,
it pops to the front. If there is no open Script view, PowerBuilder
creates a new one.</p></li></ol>
<br>
